package com.kitty.mina.session;

import org.apache.mina.core.session.AttributeKey;


public interface SessionProperties {

    // TODO 从net模块剥离
    /**
     * 编码上下文
     */
    AttributeKey CODEC_CONTEXT = new AttributeKey(SessionProperties.class, "CONTEXT_KEY");
    /**
     * 线程池分发器的索引
     */
    AttributeKey DISTRIBUTE_KEY = new AttributeKey(SessionProperties.class, "DISTRIBUTE_KEY");
    /**
     * 玩家id
     */
    AttributeKey PLAYER_ID = new AttributeKey(SessionProperties.class, "PLAYER_ID");

    /**
     * 玩家id
     */
    AttributeKey PLAYER_UID = new AttributeKey(SessionProperties.class, "PLAYER_UID");

    /**
     * 玩家ROLE
     */
    AttributeKey PLAYER = new AttributeKey(SessionProperties.class, "PLAYER");

    /**
     * 玩家姓名
     */
    AttributeKey PLAYER_NAME = new AttributeKey(SessionProperties.class, "PLAYER_NAME");
    /**
     * 洪水检查记录
     */
    AttributeKey FLOOD = new AttributeKey(SessionProperties.class, "FLOOD");

    /**
     * 模块计次
     */
    AttributeKey MODULE_COUNTER = new AttributeKey(SessionProperties.class, "MODULE_COUNTER");

    /**
     * SID
     */
    AttributeKey ACCOUNT_SID = new AttributeKey(SessionProperties.class, "ACCOUNT_SID");
    /**
     * 客户端状态
     */
    AttributeKey CLIENT_STATUS = new AttributeKey(SessionProperties.class, "CLIENT_STATUS");

    /**上次心跳的时间 和本次封包的时间*/
    AttributeKey HEARTBEAT_MAP = new AttributeKey(SessionProperties.class, "HEARTBEAT_MAP");
}
